package com.beiing.tianshuai.tianshuai.mine;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by LZQ on 2017/12/13.
 */

public class LoginRecordSQLiteOpenHelper extends SQLiteOpenHelper {

    private static final String DATABASE_NAME = "login_record.db";
    private static final int SCHEMA_VERSION = 1;

    public LoginRecordSQLiteOpenHelper(Context context) {
        super(context, DATABASE_NAME, null, SCHEMA_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table if not exists login_record(id integer primary key autoincrement, tel integer)");
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}
